import 'package:json_annotation/json_annotation.dart';
import 'package:stock_check/common/model/uploadTaskBean.dart';

@JsonSerializable()
class TaskDetail{
  int inventoryBy;
  List<UploadTaskBean> taskList;

  TaskDetail({this.inventoryBy, this.taskList});

  factory TaskDetail.fromJson(Map<String,dynamic> json){
    return TaskDetail(
        inventoryBy: json['inventoryBy'] as int,
        taskList: json['taskList'] as List<UploadTaskBean>
    );
  }

  static Map<String, dynamic> toJson(TaskDetail instance){
    return<String, dynamic>{
      'inventoryBy':instance.inventoryBy,
      'taskList':instance.taskList
    };
  }
}